-
Notifications
You must be signed in to change notification settings - Fork 2
chore: reconfigure VPN on reinstall #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
be8e02f
to
194f4bb
Compare
@@ -122,7 +122,7 @@ struct LoginForm: View { | |||
).disabled(true) | |||
} | |||
Section { | |||
SecureField("Session Token", text: $sessionToken, prompt: Text("●●●●●●●●")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also removed the prompt because it was a lil confusing, and also the dots were way too big with no way to change it.
Coder Desktop/VPN/Manager.swift
Outdated
// URLSession's waiting for connectivity sometimes hangs even when | ||
// the network is up so this is deliberately short (15s) to avoid a | ||
// poor UX where it appears stuck. | ||
sessionConfig.timeoutIntervalForResource = 15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a super weird bug, the VPN was stuck connecting after waking my laptop. However, when I cut my network connection, I saw a download failed error, which would suggest that's where it was stuck.
@@ -38,7 +38,7 @@ struct LoginForm: View { | |||
.animation(.easeInOut, value: currentPage) | |||
.onAppear { | |||
baseAccessURL = state.baseAccessURL?.absoluteString ?? baseAccessURL | |||
sessionToken = "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We clear the Keychain password on Sign out
- so I don't think this does anything, actually.
194f4bb
to
36fa256
Compare
Improvement over the change in #76 - reconfigures on launch if the VPN is unconfigured, but an existing session is present in
UserDefaults
& Keychain.Additionally: